//
//  FFURL.hpp
//  VideoParse
//
//  Created by xiaerfei on 2020/3/29.
//  Copyright © 2020 erfeixia. All rights reserved.
//

#ifndef FFURL_hpp
#define FFURL_hpp

#include <stdio.h>
#include "URLContext.hpp"

class FFURL {
    public:
    URLContext *context;
    void    *private_data;
    virtual int     url_open(char *url, int flag) ;
    virtual long    url_read(char *buf, int size) ;
    virtual int     url_write(const unsigned char *buf, int size) ;
    virtual int64_t url_seek(int64_t pos, int whence) ;
    virtual int     url_close() ;
    virtual int     url_get_file_handle() ;
};





#endif /* FFURL_hpp */
